EmojiListAdapter

open class EmojiListAdapter : BaseAdapter<T, VH>

Adapters provides a binding from an Emoji data set to views that are displayed within a RecyclerView. since 1.1.0

Constructors

Link copied to clipboard
open fun EmojiListAdapter(    @NonNull emojiList: List<Emoji>,     @Nullable reactionList: List<Reaction>,     showMoreButton: Boolean)
Constructor

Functions

Link copied to clipboard
open fun getItem(position: Int): Emoji
Returns the Emoji in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getItems(): List<Emoji>
Returns the < in the data set held by the adapter.
Link copied to clipboard
open fun getItemViewType(position: Int): Int
Return the view type of the < at position for the purposes of view recycling.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<Emoji>, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<Emoji>
Called when RecyclerView needs a new < of the given type to represent an item.
Link copied to clipboard
open fun setEmojiClickListener(@Nullable emojiClickListener: OnItemClickListener<String>)
Register a callback to be invoked when the emoji is clicked and held.
Link copied to clipboard
open fun setMoreButtonClickListener(@Nullable moreButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the emoji more button is clicked and held.